<%@tag pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@attribute name="id"%>
<%@attribute name="type" type="java.lang.String"%>
<%@attribute name="message"%>
<%@attribute name="rendered" type="java.lang.Boolean"%>
<c:if test="${not empty rendered and rendered eq true}">
	<c:if test="${not empty type}">
		<c:if test="${type eq 'info'}">
			<div class="alert alert-info fade in" id="${id}">
			  <button class="close" data-dismiss="alert">
						<i class="fa fa-times"></i>
				</button>
				<i class="fa fa-exclamation"></i>
				<c:out value="${message}"  escapeXml="false"/>
			</div>
		</c:if>
		<c:if test="${type eq 'warn'}">
			<div  class="alert alert-warning fade in" id="${id}">
				 <button class="close" data-dismiss="alert">
						<i class="fa fa-times"></i>
				</button>
				<i class="fa fa-exclamation"></i>
				<c:out value="${message}" escapeXml="false"/>
			</div>
		</c:if>
		<c:if test="${type eq 'error'}">
			<div class="alert alert-danger fade in" id="${id}" style="background-color: #e2d0d2; color: #555;">
				 <button class="close" data-dismiss="alert">
						<i class="fa fa-times"></i>
				</button>
				<i class="fa fa-exclamation"></i>
				<c:out value="${message}" escapeXml="false"/>
				<br>
			</div>
		</c:if>
		<c:if test="${type eq 'success'}">
			<div class="alert alert-success fade in" id="${id}">
				<button class="close" data-dismiss="alert">
					<i class="fa fa-times"></i>
				</button>
				<i class="fa fa-check"></i>
				<c:out value="${message}" escapeXml="false"/>
			</div>
		</c:if>
	</c:if>
</c:if>



